{% include '../common/header.htm' %}
<div class="main">
<div class="main2">
<div class="m-main">
<div class="message-list">
<div class="message-title c-title">留言板</div><!--message-title-->

<div class="info-block">
    <form id="form1" name="form1" action="message.php" method="post" onsubmit="return InputCheck(this)">
    <div class="input-line">昵&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;称：<input type="text" name="nickname" id="nickname" size="30"/><span class="notice-info">(必填，不能超过16个字符，汉字不超过8个字)</span></div>
    <div class="input-line">电子邮箱：<input type="text" name="email" id="email" size="30"/><span class="notice-info">(非必填，不超过60个字符)</span><br/></div>
    <div class="input-line"><span style="position:relative; top:-87px;">留言内容：</span><textarea id="content" name="content" cols="100" rows="6"></textarea></div>
    <div class="input-line">
       <input type="image" src="{% $template_dir %}/images/submit.png" class="submit-m"/>
       <input type="image" src="{% $template_dir %}/images//reset.png"   class="submit-m submit-m2" onclick="javascript:document.forms['form1'].reset(); return false;"/>
       <span class="notice-info">(请自觉遵守互联网相关法律政策，严禁发动暴力、色情、反动言论)</span>
    </div>
    </form>
</div><!--info-block-->
  
</div><!--message-list-->
{% messagepagelist page=$page offset=$offset limit='4' %}


     <div class="m-list">
         {% foreach from=$list item=v %}
        <div class="user-leave">
           <div class="user-name">{% $v.nickname %}</div>
           <div class="leave-time">{% $v.createtime %}</div>
           <div class="leave-info">{% $v.content %}</div>
        </div><!--user-leave-->
        {% if $v.reply neq '' %}
        <div class="adm-answer">
           <div class="user-name ad-name">管理员回复</div>
           <div class="leave-time">{% $v.replytime %}</div>
           <div class="leave-info">{% $v.reply %}</div>
        </div><!--adm-answer-->
        {% /if %}
        {% /foreach %}
    </div><!--m-list-->

  <div class='page_navigator'>
 <span class='article_num'>共有文章{% $info.message_num %}篇</span>{% $info.message_home %}
 {% $info.pre_page %}
 {% foreach from=$info.pages item=v %}
 {% $v %}
 {% /foreach %}
 {% $info.next_page %}
 {% $info.last_page %}
 </div> <!--page_navigator end-->
{% /messagepagelist %}  
<hr style="margin-bottom:5px; border:1px #ffd14e solid;"/>
</div>
</div>
</div>

{% include '../common/footer.htm' %}